﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Artemis;

namespace JAWWS
{
    class TableNode : SceneGraphNode
    {
        public Table t;

        public TableNode()
        {
            this.child = null;
            this.sibling = null;
            this.t = null;
            this.LocalTransMatrix = this.IdMatrix;
        }
        public TableNode(MainForm main)
        {
            this.child = null;
            this.sibling = null;
            this.t = new Table(main);
            this.LocalTransMatrix = this.IdMatrix;
        }
        public override void draw()
        {
            GL.glEnable(GLenum.GL_TEXTURE_2D);
            t.posX = 0.0f;
            t.posY = 0.0f;
            t.posZ = 0.0f;
            GL.glRotatef(90.0f, 1.0f, 0.0f, 0.0f);
            GL.glBindTexture(GLenum.GL_TEXTURE_2D, t.texID2); 
            t.draw();
            GL.glDisable(GLenum.GL_TEXTURE_2D);
        }
    }
}
